<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <title>商品更新</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css"
          th:href="@{/css/style.css}"/>
</head>

<body>
<div id="wrap">
    <div id="top_content">
        <div id="content">
            <h1>
                更新商品信息:
            </h1>
            <form th:action="@{/goods/update}" method="post">
                <table cellpadding="0" cellspacing="0" border="0"
                       class="form_table">
                    <tr>
                        <td valign="middle" align="right">
                            编号:
                        </td>
                        <td valign="middle" align="left">
                            <input type="text" th:value="${goods.id}" readonly name="id"/>
                        </td>
                    </tr>
                    <tr>
                        <td valign="middle" align="right">
                            名称:
                        </td>
                        <td valign="middle" align="left">
                            <input type="text" th:value="${goods.name}" readonly name="name"/>
                        </td>
                    </tr>

                    <tr>
                        <td valign="middle" align="right">
                            价格:
                        </td>
                        <td valign="middle" align="left">
                            <input type="text" th:value="${goods.price}" readonly name="price"/>
                        </td>
                    </tr>

                    <tr>
                        <td valign="middle" align="right">
                            描述:
                        </td>
                        <td valign="middle" align="left">
                            <input type="text" th:value="${goods.description}" readonly name="price"/>
                        </td>
                    </tr>

                    <tr>
                        <td valign="middle" align="right">
                            创建时间:
                        </td>
                        <td valign="middle" align="left">
                            <input type="text" th:value="${#dates.format(goods.createTime,'yyyy-MM-dd HH:mm:ss')}"
                                   readonly name="createTime"/>
                        </td>
                    </tr>

                </table>
                <p>
                    <input type="submit" class="button" value="更新"/>
                    <input type="button" class="button" value="返回列表" onclick="back()"/>
                    <script>
                        function back() {
                            location.href = '[[@{/goods/selectPage}]]'
                        }
                    </script>
                </p>
            </form>
        </div>
    </div>
    <div id="footer">
        <div id="footer_bg">
            ldd@126.com
        </div>
    </div>
</div>
</body>
</html>
